package com.ljt.springsecuritylogin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/")
@Controller
public class HomeController {


    @GetMapping("home")
    public String home(){
        return "home";
    }

    @GetMapping("userInfo")
    @ResponseBody
    public String getUserInfo(){
    	return "AAAA";
    }
}